<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/base.jsp"%>
<%@ taglib prefix="d" uri="/doone-comm-ui-tags"%>

<html>
	<head>
		<title>活动信息管理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<link type="text/css" href="<%=path%>/manage/css/layout.css"	rel="stylesheet" />
		<link type="text/css" href="<%=path%>/manage/css/new_style.css"	rel="stylesheet" />
		<link rel="stylesheet" type="text/css"	href="<%=path%>/manage/css/Tooltip.css" />
		<script type="text/javascript" src="<%=path%>/manage/js/jquery-1.4.4.min.js"></script>

		<script type="text/javascript" src="<%=path%>/manage/js/easyTooltip.js"></script>
		<script type="text/javascript"	src="<%=path%>/manage/js/jquery-ui-1.8.11.custom.min.js"></script>
		<script type="text/javascript"	src="<%=path%>/manage/js/jquery.wysiwyg.js"></script>
		<script type="text/javascript"	src="<%=path%>/manage/js/hoverIntent.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/superfish.js"></script>
		<script type="text/javascript" src="<%=path%>/manage/js/custom.js"></script>
		<script type="text/javascript">
				function _iframeDialog(url, title, opts) {
					var $iframe = $("<iframe  src=" + url
							+ " class='ui-dialog-content ui-widget-content'/>");
					var defOpts = {
						autoOpen : true,
						modal : true,
						title : title,
						height : "450",
						width : "800",
						open : function(event, ui) {
							$(this).css("width", "100%");
						},
						close : function(evnet, ui) {
							$(this).dialog("destroy");
							$(this).remove();
						}
					};
					opts = $.extend(defOpts, opts);
					$iframe.dialog(opts);
				}
				
				function callUserActions(id,title,actionType){
				  var url="${pageContext.request.contextPath}/acti/getJoinCount.action?activitiesId="+id+"&actionType="+actionType;
				  _iframeDialog(url, title, {
						height : "400",
						width : "750"
					});
				}
		</script>
	</head>


	<body>
		<div>
			<p class="sitemap">
				当前位置：内容管理 > 活动信息管理
			</p>
			<h1>
				活动信息管理
			</h1>
			<div>
				<!-- Tabs -->
				<div id="tabs">
					<ul>
						<li>
							<a href="#tabs-1">活动列表</a>
						</li>

					</ul>
		<!-- 检索 -->	
		<!-- 检索 END-->			
					<table class="fullwidth" cellpadding="0" cellspacing="0"
						border="0">
						<thead>
							<tr>
								<td>
									活动名称
								</td>
								<td >
									发布时间
								</td>
								<td>
									收藏人数
								</td>
								<td>参与人数</td>
								<td>评论管理</td>
								<td>分享管理</td>
								<!-- <td>
									操作
								</td>	  -->												
							</tr>
						</thead>
						<tbody>
							<s:iterator value="actiList">
								<tr>														<td>
									<s:if test="actiName.length()>10">
										<s:property value="actiName.substring(0,10)" />...
									</s:if>
									<s:else>
										<s:property value="actiName" />
									</s:else>													
									</td>														
									<td>
									<s:property value="signTime" />
									</td>
									<td>
									<a href="javascript:void(0)" onclick="callUserActions(<s:property value="actiId" />,'活动收藏','ACTIVITIES_FAV')"><s:property value="favoritesUserCount" /></a>
									</td>
									<td>
									<a href="javascript:void(0)" onclick="callUserActions(<s:property value="actiId" />,'活动参与','ACTIVITIES_JOIN')"><s:property value="joinUserCount" /></a>
									</td>
									<td>
									<a href="<%=path %>/acti/getCommentInit.action?tarId=<s:property value="actiId" />"><s:property value="commentUserCount" /></a>	
									</td>
									<td>
									<a href="javascript:void(0)" onclick="callUserActions(<s:property value="actiId" />,'活动分享','ACTIVITIES_SHARE')"><s:property value="shareUserCount" /></a>
									</td>
									<!--
									<td><a href="<%=path %>/acti/getActiPhoto.action?intContentId=<s:property value="actiId" />">相册管理</a></td>
									  <td>
                                      <a href="javascript:void(0)" onclick="deleteActities(<s:property value="actiId" />)">删除</a>	
									</td> -->
									
								</tr>
							</s:iterator>
						</tbody>
					</table>
					
					<!-- 分页标签开始  -->
              <div align="right" style="float:right;">
                <d:page id="page" template="details" skin="gray">					                
                </d:page>
              </div> 
				</div>
				
		</div>
		</div>


	</body>
</html>
